﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace control9
{
    [Designer(typeof(TongJi_EMS._TJ_Basic.TJ_BasicControlDesigner))]
    public partial class UserControl9 : TongJi_EMS._TJ_Basic.TJ_BasicControl
    {
        public UserControl9()
        {
            InitializeComponent();
        }

        private void UserControl9_Load(object sender, EventArgs e)
        {
            UserControl9_Resize(sender, e);
        }

        private void UserControl9_Paint(object sender, PaintEventArgs e)
        {
            Pen a = new Pen(Color.Yellow, 1);
            e.Graphics.DrawLine(a, x * 0.1f, y * 0.1f, x * 2f, y * 0.1f);
            e.Graphics.DrawLine(a, x * 0.1f, y * 0.1f, x * 0.1f, y * 2f);
        }

        private void UserControl9_Resize(object sender, EventArgs e)
        {
            this.x = this.Width / 2;
            this.y = this.Height / 2;
            //this.Refresh();
        }

    }
}